<template>
	<GlobalBG title="调阅详情" :showHeader="true" :showBack="true">
		<view class="video-play-ptz-container">
			<view class="video-box">
				<videoPlayer></videoPlayer>
			</view>
			<view class="point-info">
				<view class="name-info">
					<view class="name">近开里西门监控点</view>
					<view class="lineStatus">
						<view class="circle"></view>在线
					</view>
				</view>
				<view class="types">
					<view class="tip">出入口</view>
				</view>
			</view>
			<view class="panel-box">
				<view class="ptz">
					<ptz width="261" height="261"></ptz>
				</view>
				<view class="zoomptz">
					<view class="zoombtn" @click="panelVideo('ZOOM_OUT')">
						<image src="/static/images/xgjd/zommout.png"></image>
					</view>
					<view class="zoombtn" @click="panelVideo('ZOOM_IN')">
						<image src="/static/images/xgjd/zoomin.png"></image>
					</view>
				</view>
				
			</view>
	
		</view>
	</GlobalBG>
</template>

<script setup lang="ts">
	import { ref } from "vue";
	import videoPlayer from '@/components/video.nvue'
	import ptz from '@/components/ptz.vue'
	const panelVideo = (cmd) => {
		
	}
</script>

<style lang="scss" scoped>
	.video-play-ptz-container {
		width: 100%;
		height: 100%;
		padding: 0rpx 28rpx;
		overflow: hidden;

		.video-box {
			margin-top: 55rpx;
			width: 100%;
			height: 434rpx;
			overflow: hidden;
		}

		.point-info {
			width: 100%;
			height: 134rpx;
			background: #fff;
			padding: 15rpx 38rpx;

			.name-info {
				display: flex;
				align-items: center;
				justify-content: space-between;

				.name {
					margin-top: 17rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 600;
					font-size: 23rpx;
					color: #333333;
					line-height: 33rpx;
				}

				.lineStatus {
					margin-top: 10rpx;
					display: flex;
					align-items: center;
					font-family: PingFangSC, PingFang SC;
					font-weight: 500;
					font-size: 23rpx;
					color: #39AA92;
					line-height: 33rpx;

					.circle {
						width: 17rpx;
						height: 17rpx;
						border-radius: 50%;
						background: #39AA92;
						margin-right: 10rpx;
					}
				}
			}

			.types {
				margin-top: 10rpx;
				display: flex;
				align-items: center;

				.tip {
					min-width: 81rpx;
					height: 38rpx;
					background: #D2F0FF;
					border-radius: 8rpx;
					text-align: center;
					padding: 0 17rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 500;
					font-size: 23rpx;
					color: #45AFF7;
					line-height: 38rpx;
				}
			}
		}
		.panel-box{
			margin-top: 26.92rpx;
			display: flex;
			align-items: top;
			
			.ptz{
				padding: 38rpx 98rpx 36rpx 84rpx;
				width: 444rpx;
				height: 337rpx;
				background: #FFFFFF;
				box-shadow: 0rpx 0rpx 56rpx 0rpx rgba(70,102,149,0.06);
				margin-right: 19.23rpx;
			}
			.zoomptz{
				width: 229rpx;
				height: 337rpx;
				background: #FFFFFF;
				box-shadow: 0rpx 0rpx 56rpx 0rpx rgba(70,102,149,0.06);
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				padding-left: 90rpx;
				.zoombtn{
					width: 76rpx;
					height: 76rpx;
					background: #E4EFFD;
					border-radius: 15rpx;
					border: 2rpx solid #C3DCFF;
					padding: 17rpx;
					image{
						width: 42rpx;
						height: 42rpx;
					}
				}
			}
		}
	}
</style>